package com.lh_travel.lohas.domain;

import java.io.Serializable;
import java.util.Objects;

public class Record implements Serializable {

    public String title;
    public String belong;

    public Record(String title, String belong) {
        this.title = title;
        this.belong = belong;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (!(o instanceof Record)) return false;
        Record record = (Record) o;
        return Objects.equals(title, record.title) &&
                Objects.equals(belong, record.belong);
    }

    @Override
    public String toString() {
        return "Record{" +
                "title='" + title + '\'' +
                ", belong='" + belong + '\'' +
                '}';
    }
}
